package  com.ylb.rent.dao;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import  com.ylb.rent.entity.RoomStuff;
import com.ylb.rent.entity.Stuff;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.stereotype.Repository;

/**
 * 房间设施Mapper接口
 * 
 * @author ylb
 * @date 2023-06-29
 */
@Repository
public interface RoomStuffMapper extends BaseMapper<RoomStuff>
{

    /**
     * 查询房间设施
     * 
     * @param id 房间设施主键
     * @return 房间设施
     */
    public RoomStuff selectRoomStuffById(Long id);

    /**
     * 查询房间设施列表
     * 
     * @param roomStuff 房间设施
     * @return 房间设施集合
     */
    public List<RoomStuff> selectRoomStuffList(RoomStuff roomStuff);

    /**
     * 新增房间设施
     * 
     * @param roomStuff 房间设施
     * @return 结果
     */
    public int insertRoomStuff(RoomStuff roomStuff);

    /**
     * 修改房间设施
     * 
     * @param roomStuff 房间设施
     * @return 结果
     */
    public int updateRoomStuff(RoomStuff roomStuff);

    /**
     * 删除房间设施
     * 
     * @param id 房间设施主键
     * @return 结果
     */
    public int deleteRoomStuffById(Long id);

    /**
     * 批量删除房间设施
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteRoomStuffByIds(Long[] ids);

    List<Stuff> selectStuffIdByRoomId(Long id);

    void deleteRoomStuffByRoomId(Long id);
}
